package com.daoxiang.pojo;

import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "dx_shopping_cart")
public class ShoppingCart {

    @Id
    private Integer gid;

    @Id
    private Integer uid;

    private Integer num;

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "ShoppingCart{" +
                "gid=" + gid +
                ", uid=" + uid +
                ", num=" + num +
                '}';
    }
}
